<?php
/**
 * bench marks
 * @author bbqq <toughgamer@gmail.com>
 * @package com.blib.core
 * @copyright bbqq qstufie.com
 */
if (!defined('_BLIBPATH') || empty($status)) {
    exit;
}
?>
<style media="screen" type="text/css"><!--
<?php include_once _BLIBPATH . '_templates/style/internal.css'; ?>
--></style>
<h3 class="_blib_internal_css">Bench Marks</h3>
<table class="_blib_internal_css" border="0" cellpadding="0" cellspacing="0">
<?php
foreach ($status as $k => $trace) {
?>
<tr><th>
    <?php echo Blib_Utility_Date::formatMicroTime('Y-m-d:H:i:s', $trace['time']) ?> |
    Processed in <b><?php echo $trace['duration']; ?></b> seconds, peak RAM usage:
    <b><?php echo number_format($trace['memory']/(1024*1024), 2); ?>M</b>
    </th></tr>
<tr>
    <td><?php echo $trace['message']; ?></td>
</tr>
<tr><td>&nbsp;</th></tr>
<?php
}
?>
</table>